<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精灵图使用</title>

    <style>
        .a {
            width: 130px;
            height: 130px;
            background: url(images/abcd.jpg) 16px 1px;
        }
        
        .b {
            width: 123px;
            height: 125px;
            background: url(images/abcd.jpg) -203px -124px;
        }
    </style>

</head>

<body>

    <div class="a"></div>
    <div class="b"></div>
    <div class="c"></div>


</body>

</html>